package com.oig.sys.file.dao;

import com.oig.sys.file.entity.TbBusFileConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
@author wuxl
*/
public interface ITbBusFileConfigDao extends JpaRepository<TbBusFileConfig, Integer> {

	@Query("from TbBusFileConfig c where c.id=:id")
	TbBusFileConfig getBusFileConfigById(@Param("id") Integer id);


	@Query("from TbBusFileConfig c where  c.businessType=:businessType and c.relationType=:relationType")
	TbBusFileConfig getByBusAndRel(@Param("businessType")String businessType, @Param("relationType")String relationType);

}
